import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'


Vue.use(Router)

export const constantRouterMap = [
  {path: '/', redirect:'/login'},
  {path: '/login', name: 'login', component: () => import('@/views/login')},
]

export default new Router({
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap
})
